package com.pulse.base.mapper;

import com.pulse.base.domain.CircuitMeasure;

import java.util.List;

/**
 * 光路监测Mapper接口
 *
 * @author 陆帅
 * @date 2024-07-17
 */
public interface CircuitMeasureMapper {

    /**
     * 查询列表
     * @param circuitMeasure
     * @return
     */
    List<CircuitMeasure> selectCircuitMeasureList(CircuitMeasure circuitMeasure);

    /**
     * 根据id查询
     * @param measureId
     * @return
     */
    CircuitMeasure selectCircuitMeasureByMeasureId(Long measureId);

    /**
     * 新增
     * @param circuitMeasure
     * @return
     */
    int insertCircuitMeasure(CircuitMeasure circuitMeasure);

    /**
     * 修改
     * @param circuitMeasure
     * @return
     */
    int updateCircuitMeasure(CircuitMeasure circuitMeasure);

    /**
     * 根据id删除
     * @param measureId
     * @return
     */
    int deleteCircuitMeasureByMeasureId(Long measureId);

    /**
     * 根据id列表删除
     * @param measureIds
     * @return
     */
    int deleteCircuitMeasureByMeasureIds(Long[] measureIds);

    /**
     * 设置参考曲线
     * @param measureId
     * @return
     */
    int setDefaultMeasure(Long measureId);

    /**
     * 根据设备编号删除
     * @param deviceNo
     * @return
     */
    int deleteCircuitMeasureByDeviceNo(String deviceNo);

    /**
     * 根据设备编号查询
     * @param deviceNo
     * @return
     */
    List<CircuitMeasure> selectCircuitMeasureByDeviceNo(String deviceNo);
}
